package com.ytjj.qmyx.mall.enums;

import lombok.Getter;

@Getter
public enum CouponPriceEnums {
    _1(0, ""),
    _2(1,"30"),
    _3(2,"50"),
    _4(3,"100"),
    _5(4,"200"),
    _6(5,"300"),
    ;

    Integer key;

    String couponPrice;

    CouponPriceEnums(Integer key ,String couponPrice){
        this.key = key;
        this.couponPrice = couponPrice;
    }

    public static CouponPriceEnums getCouponPriceEnums(Integer key){
        CouponPriceEnums[] couponPriceEnums = CouponPriceEnums.values();
        for(int i = 0;i<couponPriceEnums.length;i++){
            if(couponPriceEnums[i].key == key){
                return couponPriceEnums[i];
            }

        }
        return null;
    }

}
